package com.bjfu.eduservice.client;

import com.bjfu.common_utils.vo.UcenterMemberVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-ucenter",fallback = UcenterDegradeFeignClient.class)
@Component
public interface UcenterClient {
    /*
    远程调用用户中心微服务获取用户信息
     @PathVariable注解一定要指定参数名称，否则出错
     */
    @GetMapping("/educenter/member/getMemberInfo/{id}")
    public UcenterMemberVo getMemberInfo(@PathVariable("id") String id);
}
